package com.ruoyi.project.declaration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.declaration.mapper.ProjectRecordMapper;
import com.ruoyi.project.declaration.domain.ProjectRecord;
import com.ruoyi.project.declaration.service.IProjectRecordService;

/**
 * 工程申报记录Service业务层处理
 * 
 * @author Daniel
 * @date 2020-04-01
 */
@Service
public class ProjectRecordServiceImpl implements IProjectRecordService 
{
    @Autowired
    private ProjectRecordMapper projectRecordMapper;

    /**
     * 查询工程申报记录
     * 
     * @param prid 工程申报记录ID
     * @return 工程申报记录
     */
    @Override
    public ProjectRecord selectProjectRecordById(Long prid)
    {
        return projectRecordMapper.selectProjectRecordById(prid);
    }

    /**
     * 查询工程申报记录列表
     * 
     * @param projectRecord 工程申报记录
     * @return 工程申报记录
     */
    @Override
    public List<ProjectRecord> selectProjectRecordList(ProjectRecord projectRecord)
    {
        return projectRecordMapper.selectProjectRecordList(projectRecord);
    }

    /**
     * 新增工程申报记录
     * 
     * @param projectRecord 工程申报记录
     * @return 结果
     */
    @Override
    public int insertProjectRecord(ProjectRecord projectRecord)
    {
        return projectRecordMapper.insertProjectRecord(projectRecord);
    }

    /**
     * 修改工程申报记录
     * 
     * @param projectRecord 工程申报记录
     * @return 结果
     */
    @Override
    public int updateProjectRecord(ProjectRecord projectRecord)
    {
        return projectRecordMapper.updateProjectRecord(projectRecord);
    }

    /**
     * 批量删除工程申报记录
     * 
     * @param prids 需要删除的工程申报记录ID
     * @return 结果
     */
    @Override
    public int deleteProjectRecordByIds(Long[] prids)
    {
        return projectRecordMapper.deleteProjectRecordByIds(prids);
    }

    /**
     * 删除工程申报记录信息
     * 
     * @param prid 工程申报记录ID
     * @return 结果
     */
    @Override
    public int deleteProjectRecordById(Long prid)
    {
        return projectRecordMapper.deleteProjectRecordById(prid);
    }
}
